/*
 * @description: 
 * @Date: 2023-03-30 16:12:12
 * @example: 
 * @params: 
 */

let options = {
  swaggerDefinition: {
    info: {
      description: 'This is a sample server',
      title: 'multi-tenant Serve',
      version: '1.0.0'
    },
    host: 'localhost:4000',
    basePath: '/',
    produces: ['application/json', 'application/xml'],
    schemes: ['http', 'https'],
    securityDefinitions: {
      tenantId: {
        type: 'apiKey',
        in: 'header',
        name: 'x-tenant-id',
        description: ''
      },
      Authorization: {
        type: 'apiKey',
        in: 'header',
        name: 'Authorization',
        description: 'token'
      }
    }
  },
  route: {
    url: '/swagger',
    docs: '/swagger.json' //swagger文件 api
  },
  basedir: __dirname, //app absolute path
  files:['../../router/*/*.js']
  // files: ['./router/api/*.js'] //Path to the API handle folder
}
  module.exports = options 